#include<stdio.h>
struct student
{
	char name[26];
	char ID[26];
	int score[5];
	double average;
	int total;
}stu;
int main()
{
	gets(stu.name);
	scanf("%s",stu.ID);
	for(int i=0;i<5;i++)
	{
		scanf("%d",&stu.score[i]);
		stu.total+=stu.score[i];
	}
	stu.average=stu.total/5.0;
	for(int i=0;i<5;i++)
	{
		int temp=i,score_temp;
		for(int j=i+1;j<5;j++)
		{
			if(stu.score[temp]<stu.score[j])
			temp=j;
		}
		score_temp=stu.score[temp];
		stu.score[temp]=stu.score[i];
		stu.score[i]=score_temp;
	}
	struct student *p=&stu;
	printf("Name:%s\nID:%s\nScore:",p->name,p->ID);
	for(int i=0;i<5;i++)
	{
		if(i==4)
		{
			printf("%d\n",p->score[i]);
			break;
		}
		printf("%d ",p->score[i]);
	}
	printf("average:%.2lf ",p->average);
	printf("total:%d",p->total);
	return 0;
 } 
